﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Model.Domain.Classes;
using Universum.Model.Domain;

namespace Universum.Infrastructure.Persistence.Queries.Classes
{
	public class ClassByUsername : IDomainQuery<Class>
	{
		public ClassByUsername(string username)
		{
			Expression = it => username == it.Owner;
		}
		#region IDomainQuery<Class> Members

		public System.Linq.Expressions.Expression<Func<Class, bool>> Expression
		{
			get;private set;
		}

		#endregion
	}
}
